<h1>Listing mentors</h1>

<table>
  <tr>
    <th>First name</th>
    <th>Last name</th>
    <th>Authorized</th>
  </tr>

<% for mentor in @mentors %>
  <tr>
    <td><%=h mentor.first_name %></td>
    <td><%=h mentor.last_name %></td>
    <td><%=h mentor.authorized %></td>
    <td><%= link_to 'Show', mentor %></td>
    <td><%= link_to 'Edit', edit_mentor_path(mentor) %></td>
    <td><%= link_to 'Destroy', mentor, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New mentor', new_mentor_path %>
